Skip to content

feat(eval): support session trace filters and log group prefixes - #2345

Merged
jariy17 merged 1 commit into
refactorfrom
feat/batch-evaluation-session-trace-filters
Sep 21, 2026
Merged

jariy17 merged 1 commit into
refactorfrom
feat/batch-evaluation-session-trace-filters

Conversation

@jariy17

@jariy17 jariy17 commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

Summary

  • update the AgentCore data-plane SDK to a version that supports CloudWatchFilterConfig.sessionTraceIds
  • document sessionTraceIds and logGroupNamePrefixes in the existing batch-evaluation --data-source-config help
  • pass raw prefix selectors and session/trace filters through StartBatchEvaluationCommand unchanged
  • scope the auto-generated online-eval execution role to logGroupNamePrefixes as well as exact log group names
  • cover both workflows through command-handler fixture tests

Testing

  • bun test src/handlers/eval/batch-evaluation/batch-evaluation.fixture.test.tsx src/handlers/eval/online-eval/online-eval.test.tsx
  • bun test src/core/onlineEvalExecutionRole.test.ts src/handlers/eval/batch-evaluation/batch-evaluation.test.tsx src/handlers/eval/online-eval/online-eval.screen.test.tsx
  • bun run typecheck
  • bunx oxlint src/core/eval.tsx src/core/onlineEvalExecutionRole.tsx src/handlers/eval/sessionSource.tsx src/handlers/eval/batch-evaluation/batch-evaluation.fixture.test.tsx src/handlers/eval/online-eval/online-eval.test.tsx
  • git diff --check

@github-actions github-actions Bot added the size/s PR size: S label Sep 18, 2026
@agentcore-devx-automation agentcore-devx-automation Bot added agentcore-harness-reviewing AgentCore Harness review in progress claude-security-reviewing Claude Code /security-review in progress labels Sep 18, 2026
@agentcore-devx-automation

Copy link
Copy Markdown
Contributor

Claude Security Review: no high-confidence findings. (run)

@agentcore-devx-automation agentcore-devx-automation Bot removed the claude-security-reviewing Claude Code /security-review in progress label Sep 18, 2026

@agentcore-devx-automation agentcore-devx-automation Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AgentCore Harness Review

Verdict: Looks good

Small, well-scoped change: SDK bump to pick up sessionTraceIds, help-text update, and a test covering the raw pass-through path.

  • Verified SessionTraceIds / CloudWatchFilterConfig.sessionTraceIds exist in @aws-sdk/client-bedrock-agentcore@3.1136.0, so the ^3.1135.0 bump is sufficient.
  • The test in src/core/batchEvaluation.test.tsx mocks at the AWS SDK client boundary (send), which is the right layer — not over-mocked.
  • No new user-facing commands are introduced, so no additional telemetry instrumentation is warranted.

One minor thing to double-check (not a blocker): the help text in src/handlers/eval/sessionSource.tsx states traceIds accepts "up to 100 trace IDs". The SDK typings don't encode that limit; worth confirming against the public API docs before this misleads users if the real cap differs. Fine to address in a follow-up.

@agentcore-devx-automation agentcore-devx-automation Bot removed the agentcore-harness-reviewing AgentCore Harness review in progress label Sep 18, 2026
@codecov-commenter

codecov-commenter commented Sep 18, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.26%. Comparing base (a23e472) to head (576581f).

Additional details and impacted files
@@            Coverage Diff            @@
##           refactor    #2345   +/-   ##
=========================================
  Coverage     97.26%   97.26%           
=========================================
  Files           610      610           
  Lines         40590    40605   +15     
=========================================
+ Hits          39480    39495   +15     
  Misses         1110     1110           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@jariy17
jariy17 force-pushed the feat/batch-evaluation-session-trace-filters branch from d5ac908 to 576581f Compare September 18, 2026 23:14
@jariy17 jariy17 changed the title feat(eval): support session trace filters in batch evaluations feat(eval): support trace-filtered log group prefixes Sep 18, 2026
@github-actions github-actions Bot added size/s PR size: S and removed size/s PR size: S labels Sep 18, 2026
@agentcore-devx-automation agentcore-devx-automation Bot added the claude-security-reviewing Claude Code /security-review in progress label Sep 18, 2026
@agentcore-devx-automation

Copy link
Copy Markdown
Contributor

Claude Security Review: no high-confidence findings. (run)

@agentcore-devx-automation agentcore-devx-automation Bot removed the claude-security-reviewing Claude Code /security-review in progress label Sep 18, 2026
@jariy17 jariy17 changed the title feat(eval): support trace-filtered log group prefixes feat(eval): support session trace filters and log group prefixes Sep 20, 2026
@github-actions github-actions Bot added size/s PR size: S and removed size/s PR size: S labels Sep 20, 2026
@jariy17
jariy17 merged commit 0aade4a into refactor Sep 21, 2026
22 of 25 checks passed
@jariy17
jariy17 deleted the feat/batch-evaluation-session-trace-filters branch September 21, 2026 23:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/s PR size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants